package mt.filter.messagewrapper;

import mt.Order;
import mt.comm.ServerSideMessage;

/**
 * Implementation of the ServerSideMessage used to disconnect users
 * 
 */
public class DisconnectServerSideMessage implements ServerSideMessage{

	private Order order;
	private String senderNickname;

	public DisconnectServerSideMessage(ServerSideMessage serverSideMessage) {
		this.order = serverSideMessage.getOrder();
		this.senderNickname = serverSideMessage.getSenderNickname();
	}
	
	@Override
	public Type getType() {
		return Type.DISCONNECTED;
	}

	@Override
	public String getSenderNickname() {
		return senderNickname;
	}

	@Override
	public Order getOrder() {
		return order;
	}

}
